<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>登录</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />

</head>
<body>

<header class="aui-bar aui-bar-nav aui-bar-light" id="header">
    <a class="aui-pull-left aui-btn" tapmode onclick="api.closeWin();">
        <span class="aui-iconfont aui-icon-left" style="color:#ff4285;"></span>
    </a>
    <div class="aui-title" style="color:#ff4285;">我的昵称</div>
</header>
</body>
<script type="text/javascript" src="../script/api.js" ></script>
<script type="text/javascript" src="./conf/config.js"></script>
<script type="text/javascript" src="./js/common.js"></script>
<script type="text/javascript">
apiready = function() {

    var header = $api.byId('header');//获取节点
    $api.fixStatusBar($api.dom('header'));
    api.setStatusBarStyle({
        style: 'dark',
       color:'transparent'
    });
    var headerH = $api.offset(header).h;//获取header的高
    api.openFrame({//打开一个frame
        name: 'my_name_frame',
        url: './my_name_frame.html',
        rect: {//定位下面
            x: 0,
            y: headerH,
            w: 'auto',
            h: 'auto'
        },
        pageParam: api.pageParam,
        bounces: true//弹跳开启
    });
};


</script>
</html>
